package com.yzd.crm.service;

import com.yzd.crm.domain.BaseDict;
import com.yzd.crm.domain.Customer;
import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

/**
 * @Auther: Ye Zhengdong
 * @Date: 2019/4/3 14:09
 * @Description:
 */
public interface CustomerService {

    void add(Customer customer);

    List<BaseDict> findLevel(String s);

    List<BaseDict> findSource(String s);

    List<BaseDict> findIndustry(String s);

    void save(Customer customer);

    List<Customer> findAll();

    List<Customer> conditionFind(DetachedCriteria dc);

    Customer findById(Integer id);

    void update(Customer customer);

    void delete(Customer customer);
}
